import game
import graphicMatch
import pyautogui

# 截屏
textPng = './screenshot.png'
screen_width, screen_height = pyautogui.size()
screenshot = pyautogui.screenshot(region=(0, 0, screen_width, screen_height))
screenshot.save(textPng)

main_list = graphicMatch.match(textPng)

# main_list = sort.sort()

game.go(main_list)

if __name__ == '__main__':
    print('end')
